package Dao;

import been.Announcements;
import been.Health;
import been.User;

import java.sql.SQLException;
import java.util.List;

public interface communityDao extends Dao {
    public User findUserByUsername(String username) throws SQLException;
    public int addUser(User user) throws SQLException;
    public int deleteUserByUserid(int id) throws SQLException;
    public User findUserById(int id) throws SQLException;
    public int updateUser(User user) throws SQLException;
    public int addHealth(Health health) throws SQLException;
    public int deleteHealthByHealthId(int id) throws SQLException;
    public Health findHealthByHealthId(int id) throws SQLException;
    public List<Health> findAllHealthByHealthId() throws SQLException;
    public int updateHealth(Health health) throws SQLException;
    public int addAnnouncement(Announcements announcements) throws SQLException;
    public List<Announcements> findAllAnnouncements() throws SQLException;
    public int deleteAnnouncementByAnnouncementId(int id) throws SQLException;
    public Announcements findAnnouncementByAnnouncementId(int id) throws SQLException;
    public int updateAnnouncement(Announcements announcements) throws SQLException;
}
